package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;

/**
 * RestorationService entity. @author MyEclipse Persistence Tools <b><i>powered
 * by Belev</i></b>
 */
@Entity
@Table(name = "restoration_services")
@GeneratorKey(tableName = "service_requests")
public class RestorationServiceVO extends ServiceRequestVO {

	private static final long serialVersionUID = -4448504744199176552L;

	@Column(name = "client_number", nullable = false, length = 50)
	private String clientNumber;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_restoration_type_id", nullable = false)
	private NomRestorationTypeVO nomRestorationType;

	@Column(name = "remark")
	private String remark;

	/** default constructor */
	public RestorationServiceVO() {
		super();
	}

	/** @return the clientNumber */
	public String getClientNumber() {
		return this.clientNumber;
	}

	/** @return the nomRestorationType */
	public NomRestorationTypeVO getNomRestorationType() {
		return this.nomRestorationType;
	}

	/** @return the remark */
	public String getRemark() {
		return this.remark;
	}

	/**
	 * @param clientNumber
	 *            the clientNumber to set
	 */
	public void setClientNumber(String clientNumber) {
		this.clientNumber = clientNumber;
	}

	/**
	 * @param nomRestorationType
	 *            the nomRestorationType to set
	 */
	public void setNomRestorationType(NomRestorationTypeVO nomRestorationType) {
		this.nomRestorationType = nomRestorationType;
	}

	/**
	 * @param remark
	 *            the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
}